package temp

import (
	"background/model/back/entity"
	"gorm.io/gorm"
)

type Notice struct {
	gorm.Model
	Show    int8   `gorm:"column:show;comment:'是否显示';type:smallint"   json:"show"`
	Sort    int8   `gorm:"column:sort;comment:'是否显示';type:smallint"   json:"sort"`
	Title   string `gorm:"column:title;comment:'名称';type:varchar(255)"   json:"title"`
	Content string `gorm:"column:content;comment:'内容';type:varchar(999)" json:"content"`
}

func (c Notice) TableName() string {
	return entity.ProjectPre + "notice"
}
